A5Storage::DataContainer SaveItemToFile Method
Syntax
.SaveItemToFile as L (SourcePath as C, TargetPath as C)
Arguments
- SourcePathCharacter
The source path and object name in the Storage container.
- TargetPathCharacter
The destination path on the local machine (e.g. server or desktop application.)
Returns
- ResultLogical
Returns .T. if the operation succeeds, otherwise .F. (see .CallResult for additional error information.)
Description
Creates a file from an object in the Storage container.
Example
dim CallResult as CallResult dim Container as A5Storage::DataContainer = null_value() CallResult = A5Storage::DataContainer::Open(Container, "Provider='Disk';Container='c:\A5Webroot';") ? CallResult.Success = .T. ? Container.SaveItemToFile("MyItempath/MyItem.jpg", "c:\temp\MyItem.jpg") = .T.